﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
namespace BasicSkin
{
    using System.Windows.Input;
    using ElisVK.ViewModels;

    /// <summary>
    /// Interaction logic for ElisVKView.xaml
    /// </summary>
    public partial class ElisVKView : UserControl
    {
        public ElisVKView()
        {
            InitializeComponent();
        }

        private void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ElisVKViewModel.ListBoxCommand.Execute(sender, null);
        }

        private void txtFilter_Filter(object sender, RoutedEventArgs e)
        {
            ElisVKViewModel.SearchCommand.Execute(sender, null);
        }

        private void AudiosListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            AudiosListBox.ScrollIntoView(AudiosListBox.SelectedItem);
        }

        private void AudioSources_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
        {

        }
    }
}
